package com.arron.factorymethod.order;

import com.arron.factorymethod.pizza.BJCheesePizza;
import com.arron.factorymethod.pizza.BJPepperPizza;
import com.arron.factorymethod.pizza.Pizza;

public class BJOrderPizza extends OrderPizza{
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza =null;
        if(orderType.equalsIgnoreCase("cheese")){
            pizza = new BJCheesePizza();
        } else if(orderType.equalsIgnoreCase("pepper")){
            pizza = new BJPepperPizza();
        }

        return pizza;
    }
}
